package com.aios.entity;

import java.util.Date;

public class UsageData extends AbstractEntity {

	public static final String CLASS_KEY = "9001";
	public static final String TABLE_KEY = "1001";
	
	private String usageId;
    private String userId;
    private String pannelId;
    private String switchId;
    private Byte switchStatus;
    private Date changeTime;
    private Float currentWatt;
    private Float currentAmperage;

    public UsageData(String userId, String pannelId, String switchId,
			String currentState, Date time) {
    	this.userId = userId;
    	this.pannelId = pannelId;
    	this.switchId = switchId;
    	this.switchStatus = Byte.parseByte(currentState);
    	this.changeTime = time;
	}

	public String getUsageId() {
        return usageId;
    }

    public void setUsageId(String usageId) {
        this.usageId = usageId == null ? null : usageId.trim();
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getPannelId() {
        return pannelId;
    }

    public void setPannelId(String pannelId) {
        this.pannelId = pannelId == null ? null : pannelId.trim();
    }

    public String getSwitchId() {
        return switchId;
    }

    public void setSwitchId(String switchId) {
        this.switchId = switchId == null ? null : switchId.trim();
    }

    public Byte getSwitchStatus() {
        return switchStatus;
    }

    public void setSwitchStatus(Byte switchStatus) {
        this.switchStatus = switchStatus;
    }

    public Date getChangeTime() {
        return changeTime;
    }

    public void setChangeTime(Date changeTime) {
        this.changeTime = changeTime;
    }

    public Float getCurrentWatt() {
        return currentWatt;
    }
    public void setCurrentWatt(Float currentWatt) {
        this.currentWatt = currentWatt;
    }

    public Float getCurrentAmperage() {
        return currentAmperage;
    }

    public void setCurrentAmperage(Float currentAmperage) {
        this.currentAmperage = currentAmperage;
    }

}